package com.ruoyi.zhgd.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ruoyi.zhgd.domain.CollectDosage;
import com.ruoyi.zhgd.domain.CollectPiece;
import com.ruoyi.zhgd.domain.ZjHntMaterialStore;
import com.ruoyi.zhgd.domain.vo.CollectPieceVo;
import com.ruoyi.common.core.mapper.BaseMapperPlus;
import com.ruoyi.zhgd.dto.CollectDosageDto;
import com.ruoyi.zhgd.dto.CollectPieceDto;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 盘信息Mapper接口
 *
 * @author yhy
 * @date 2023-09-20
 */
public interface CollectPieceMapper extends BaseMapperPlus<CollectPieceMapper, CollectPiece, CollectPieceVo> {

    List<CollectPieceVo> queryPage(Page page,@Param("pkId") String pk_id);

    CollectPiece selectByPkId(@Param("pkId") Long pkId);

    List<CollectDosage> selectByIds(@Param("id") Long id);

    ZjHntMaterialStore selectByType(@Param("material") String material);

    CollectPiece selectByParentPkId(@Param("parentPkId") Long parentPkId);

    CollectPieceDto selectBys(@Param("parentPkId") Long parentPkId);

    List<CollectDosageDto> selectByList(@Param("params") Map<String, Object> params );


    List<CollectDosageDto>  selectByRecipe(@Param("params") Map<String, Object> params);

    List<CollectDosage> selectListByPkId(@Param("pkId") Long pkId);
}
